package com.iwhalecloud.bss.kite.cucc.order.accept.process.enums;

import com.iwhalecloud.bss.kite.cucc.order.accept.process.IOrderBusinessProcessor;
import com.iwhalecloud.bss.kite.cucc.order.accept.process.impl.ComplexBusinessProcessor;
import com.iwhalecloud.bss.kite.cucc.order.accept.process.impl.WithdrawOrderProcessor;

public enum BusinessProcessorEnum {

    /**
     * 复杂业务流程
     */
    COMPLEX(ComplexBusinessProcessor.class),
    /**
     * 撤单服务流程
     */
    REVOKEORDER(WithdrawOrderProcessor.class);

    private Class<? extends IOrderBusinessProcessor> clazz;

    private BusinessProcessorEnum(Class<? extends IOrderBusinessProcessor> clazz) {
        this.clazz = clazz;
    }

    public Class<? extends IOrderBusinessProcessor> getClazz() {
        return clazz;
    }
}
